﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Name="window" x:Class="Pages.MainWindow"
    Title="微波小蜜蜂-by QQ1800@gmail.com 13466639769" Height="530" Width="323" 
    StateChanged="window_StateChanged" 
    Closing="window_Closing" 
    Loaded="Window_Loaded" 
    Background="White" Icon="/FaWeiBo;component/Resources/PeaceDove.ico" mc:Ignorable="d" ResizeMode="CanResize">
    
    <Grid x:Name="grdMain" HorizontalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="65"/>
        	<RowDefinition  Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBox Margin="50,6,63,6" x:Name="txtStatus" TextWrapping="WrapWithOverflow" ClipToBounds="False" SnapsToDevicePixels="False" Background="{x:Null}" BorderThickness="0" TextChanged="TxtStatusTextChanged" />
        <Button Margin="5,5,0,0" x:Name="btnRefresh" HorizontalAlignment="Left" Click="BtnRefreshClick" FontSize="10.667" Width="40" Height="40" VerticalAlignment="Top">
            <Image Stretch="Fill" Source="/FaWeiBo;component/Resources/PeaceDove.ico" ToolTip="Refresh Tweets" />
		</Button>
        <Button x:Name="btnUpdateStatus" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,5,5,0" Background="OrangeRed" Height="22" Width="50" Content="保存" Visibility="Hidden" Click="BtnUpdateStatusClick" IsDefault="True" />
        <Button x:Name="btnCancelUpdate" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,28,5,0" Background="LightSkyBlue" Height="22" Width="50" Content="取消" Visibility="Hidden" Click="BtnCancelUpdateClick" IsCancel="True" />
        <Button x:Name="btnSettings" Click="BtnSettingsClick" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,5,5,0" Height="54" Width="54" Background="{x:Null}">
			<Image Margin="1" x:Name="imgProfile" Stretch="Fill" ToolTip="Settings" />
		</Button>
    	<Button x:Name="btnError" Grid.Row="1" Height="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Width="288" Click="BtnErrorClick" />
        
        <ScrollViewer Grid.Row="2">
            <Grid Grid.Row="2" Margin="0" x:Name="grdTweets" ShowGridLines="False">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="48" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
            </Grid>
        </ScrollViewer>
        <Button Content="PIC" Grid.RowSpan="3" Height="23" HorizontalAlignment="Left" Margin="8,51,0,0" Name="btnPicture" VerticalAlignment="Top" Width="40" Click="btnPicture_Click" />
    </Grid>
	
	<Window.Resources>
	<Storyboard x:Key="DisplayError">
		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="btnError" Storyboard.TargetProperty="(FrameworkElement.Height)">
			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
			<SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="24"/>
		</DoubleAnimationUsingKeyFrames>
		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="btnError" Storyboard.TargetProperty="(FrameworkElement.Margin)">
			<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
			<SplineThicknessKeyFrame KeyTime="00:00:00.50" Value="0,0,0,5"/>
		</ThicknessAnimationUsingKeyFrames>
	</Storyboard>
		<Storyboard x:Key="HideError">
		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="btnError" Storyboard.TargetProperty="(FrameworkElement.Height)">
			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="24"/>
			<SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="0"/>
		</DoubleAnimationUsingKeyFrames>
		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="btnError" Storyboard.TargetProperty="(FrameworkElement.Margin)">
			<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0,0,0,5"/>
			<SplineThicknessKeyFrame KeyTime="00:00:00.50" Value="0"/>
		</ThicknessAnimationUsingKeyFrames>		
	</Storyboard>

</Window.Resources>
</Window>
